package o;

import java.util.HashMap;
import java.util.Locale;
import java.util.UUID;

public class esg {
    private static final esg ॱ = new esg();
    private HashMap<Integer, String> ˋ = new HashMap();

    private esg() {
    }

    public static esg ˋ() {
        return ॱ;
    }

    public String ˋ(int i) {
        if (this.ˋ.get(Integer.valueOf(i)) == null) {
            ˊ(i);
        }
        return (String) this.ˋ.get(Integer.valueOf(i));
    }

    public void ॱ(String str, int i) {
        this.ˋ.put(Integer.valueOf(i), str);
    }

    public void ˊ(int i) {
        ॱ(ˎ(), i);
    }

    private String ˎ() {
        return ˎ(UUID.randomUUID().toString().replace("-", ""));
    }

    private String ˎ(String str) {
        if (str.length() >= 16) {
            return str;
        }
        return String.format(Locale.ENGLISH, "%16s", new Object[]{str}).replaceAll("\\s", "0");
    }
}
